package com.zmd.test;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
	
	@RequestMapping("/hello")
	public String hello() {
		System.out.println("request for hello");
		return "hello";
	}

	@RequestMapping("/other/{value}")
	public String other(@PathVariable("value")String value) {
		System.out.println("request for other/" + value);
		return "other";
	}
}
